package com.sinothk.fc.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sinothk.fc.goods.entity.GoodsDTO;
import com.sinothk.fc.goods.entity.GoodsEntity;
import com.sinothk.fc.goods.entity.GoodsSearchReq;
import com.sinothk.fc.goods.entity.GoodsVO;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 产品信息
 * @Author: Liangyt
 * @Date:   2021-12-28
 * @Version: V1.0
 */
public interface GoodsMapper extends BaseMapper<GoodsEntity> {

    GoodsDTO goodsShowDetail(@Param("goodsId") String goodsId);

    IPage<GoodsVO> getStoreAllGoodsByState(Page<GoodsEntity> page, GoodsSearchReq searchReq);

    IPage<GoodsVO> storeGoodsPageByStoreId(Page<GoodsEntity> page, String storeId);
}
